import request from '@/api/request';
//获取用户项目
export function getLogList(params) {
	return request({
		url: '/routine/log/list',
		method: 'get',
		params
	})
}

//获取项目设备列表
export const getDevInfoList = (data) => {
	return request({
		method: 'GET',
		url: '/cloud360-cordata/dev/info/list',
		data,
	})
}

//获取设备配置
export const getDevGroup = (data) => {
	return request({
		method: 'GET',
		url: '/cloud360-cordata/dev/data/getDevGroup',
		data,
	})
}

//获取设备数据
export const getDevData = (data) => {
	return request({
		method: 'POST',
		url: '/cloud360-cordata/dev/data/getDevData',
		data,
	})
}

//获取历史数据
export const getHistoryData = (data) => {
	return request({
		method: 'POST',
		url: '/cloud360-web/dev/data',
		data,
		isForm: true,
	})
}

//操作日志
export const getDevoperLog = (data) => {
	return request({
		method: 'POST',
		url: '/cloud360-cordata/dev/info/getDevoperLogg',
		data,
		isForm: true,
	})
}

//数据统计分析
export const getSisSwitchsTimeSlot = (data) => {
	return request({
		method: 'POST',
		url: '/cloud360-web/data/getSisSwitchsTimeSlot',
		data,
		isForm: true,
		noAutoHide: true,
	})
}

//统计数据
export const getSisValues = (data) => {
	return request({
		method: 'POST',
		url: '/cloud360-web/data/getSisValues',
		data,
		isForm: true,
		noAutoHide: true,
	})
}